<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of RelatedPages
 *
 * @author seth
 */
class RelatedPages {
    //put your code here
    var $pagetitle,$contentid,$directlink,$categoryid,$target;
    function  __construct($row) {
        $this->pagetitle= $row["title"];
        $this->contentid=$row["contentid"];
        $this->directlink= $row["directlink"];
        $this->categoryid=$row["categoryid"];
        if(strlen($this->directlink)>5)
        $this->target ="_blank";
        else
        $this->target="_self";
    }
}
?>
